// 引入工具类
import axios from './config'

// 使用
const URL = 'api-param' // 公共前缀地址
export const publicManage_dat = {
	//数据关联校验配置-查询
	dataAssociationQuery(data) {
		return axios.post(URL + '/param/referenceCheck/query', data)
	},
	//数据关联校验配置-新增/编辑
	dataAssociationSave(data) {
		return axios.post(URL + '/param/referenceCheck/save', data)
	},
	//数据关联校验配置-删除
	dataAssociationRemove(data) {
		return axios.post(URL + '/param/referenceCheck/remove', data)
	},
	//模板管理查询
	fundToolTableQuery(data) {
		return axios.post(URL + '/cpm/fundToolTable/query', data)
	},
	//查看模板查询
	fundToolTableColumnQuery(data) {
		return axios.post(URL + '/cpm/fundToolTableColumn/query', data)
	},
	//查看模板保存
	fundToolTableColumnSave(data) {
		return axios.post(URL + '/cpm/fundToolTableColumn/save', data)
	},
	//查看模板保存-验证数据库字段是否重复
	fTTCCheckColumnEn(data) {
		return axios.post(URL + '/cpm/fundToolTableColumn/checkColumnEn', data)
	},
	//查看模板发布
	fundToolTableColumnPublish(data) {
		return axios.post(
			URL + '/cpm/fundToolTableColumn/changeToPublish',
			data
		)
	},
	//获取金融工具表维度定义列表(CA)
	fundToolColumnQueryListCa(data) {
		return axios.post(URL + '/cpm/fundToolTableColumn/queryListCa', data)
    },
    
	queryFundTableList(data) {
		return axios.post(URL + '/cpm/fundToolTable/queryFundTableList', data)
	},

	//查看模板停用
	fundToolTableColumnStop(data) {
		return axios.post(URL + '/cpm/fundToolTableColumn/changeToStop', data)
	},
	//关联维度
	dimDictTypeQuery(data) {
		return axios.post(URL + '/param/dimDicttype/query', data)
	},
	//金融工具表发布
	fundToolTableToPublish(data) {
		return axios.post(URL + '/cpm/fundToolTable/changeToPublish', data)
	},
	//金融工具表停用
	fundToolTableToStop(data) {
		return axios.post(URL + '/cpm/fundToolTable/changeToStop', data)
	},
	//金融工具表保存-验证编码是否重复
	fTTCheckTableCode(data) {
		return axios.post(URL + '/cpm/fundToolTable/checkTableCode', data,false)
	},
	//金融工具表保存-验证中文名/模板名是否重复
	fTTCheckTableNameCn(data) {
		return axios.post(URL + '/cpm/fundToolTable/checkTableNameCn', data,false)
	},
	//金融工具表保存-验证英文名是否重复
	fTTCheckTableNameEn(data) {
		return axios.post(URL + '/cpm/fundToolTable/checkTableNameEn', data,false)
	},
	//金融工具表保存
	fundToolTableSave(data) {
		return axios.post(URL + '/cpm/fundToolTable/save', data)
	},
	//金融工具表删除
	fundToolTableRemove(data) {
		return axios.post(URL + '/cpm/fundToolTable/remove', data)
	},
	//获取金融工具表模板下拉列表
	fundToolTableQueryList(data) {
		return axios.post(URL + '/cpm/fundToolTable/queryList', data,false)
	},
	//获取金融工具表的数据 ca用
	fundToolTableQueryListCa(data) {
		return axios.post(URL + '/cpm/fundToolTable/queryListCa', data,false)
	},
	//获取金融工具表模板下拉列表-数据列表维度定义
	fundToolTableColumnQueryList(data) {
		return axios.post(URL + '/cpm/fundToolTableColumn/queryList', data,false)
	},
	//查询日历列表-左
	queryAllForList(data) {
		return axios.post(URL + '/param/holiday/queryAllForList', data)
	},
	//删除-左
	holidayRemove(data) {
		return axios.post(URL + '/param/holiday/remove', data)
	},
	//保存-左
	holidaySave(data) {
		return axios.post(URL + '/param/holiday/save', data)
	},
	//保存前验证-左
	holidayCheckCode(data) {
		return axios.post(URL + '/param/holiday/checkCode', data, false)
	},
	//查询日历列表-右
	queryHolidayDayByHolidayId(data) {
		return axios.post(
			URL + '/param/holidayDay/queryHolidayDayByHolidayId',
			data
		)
	},
	//删除-右
	holidayDayRemove(data) {
		return axios.post(URL + '/param/holidayDay/remove', data)
	},
	//保存-右
	holidayDaySave(data) {
		return axios.post(URL + '/param/holidayDay/save', data)
	},
	//准备金-查询
	dimReservesRatioQueryForPage(data) {
		return axios.post(URL + '/param/dimReservesRatio/queryForPage', data)
	},
	//准备金-删除
	dimReservesRatioRemove(data) {
		return axios.post(URL + '/param/dimReservesRatio/remove', data)
	},
	//准备金-保存
	dimReservesRatioSave(data) {
		return axios.post(URL + '/param/dimReservesRatio/save', data)
	},
	//准备金率-查询
	dimReservesRateQueryForPage(data) {
		return axios.post(URL + '/param/dimReservesRate/queryForPage', data)
	},
	//准备金率-删除
	dimReservesRateRemove(data) {
		return axios.post(URL + '/param/dimReservesRate/remove', data)
	},
	//准备金率-保存
	dimReservesRateSave(data) {
		return axios.post(URL + '/param/dimReservesRate/save', data)
	},
	//币种下拉
	queryAllCurrecyWithOutDefault(data) {
		return axios.post(
			URL + '/param/dimCurrency/queryAllCurrecyWithOutDefault',
			data
		)
	},
	//汇率管理-查询
	exchangeRateQueryForPage(data) {
		return axios.post(URL + '/param/exchangeRate/queryForPage', data)
	},
	//汇率管理-删除
	exchangeRateRemove(data) {
		return axios.post(URL + '/param/exchangeRate/remove', data)
	},
	//汇率管理-保存
	exchangeRateSave(data) {
		return axios.post(URL + '/param/exchangeRate/save', data)
	},
	//过滤器-列表查询
	pubFilterQueryForPage(data) {
		return axios.post(URL + '/param/pubFilter/queryForPage', data)
	},
	//过滤器-保存
	pubFilterSave(data) {
		return axios.post(URL + '/param/pubFilter/save', data)
	},
	//过滤器-删除
	pubFilterRemove(data) {
		return axios.post(URL + '/param/pubFilter/remove', data)
	},
	//过滤器-生成系统编码
	bizCodeConfigGetBizCodeByName(data) {
		return axios.post(
			URL + '/param/bizCodeConfig/getBizCodeByName',
			data.bizCode,false
		)
	},
	//过滤器-查询维度成员
	queryByRelatedDicttypeCode(data) {
		return axios.post(
			URL + '/param/dimDictitem/queryByRelatedDicttypeCode',
			data
		)
	},
	//过滤器-方式切换时调用
	pubFilterAlterGenWay(data) {
		return axios.post(URL + '/param/pubFilter/alterGenWay', data)
	},
	//过滤器-金融工具表切换时调用
	pubFiltersqlClearFielterSql(data) {
		return axios.post(URL + '/param/pubFiltersql/clearFielterSql', data)
	},
	//过滤器-向导方式保存
	saveDimFilterSql(data) {
		return axios.post(URL + '/param/pubFiltersql/saveDimFilterSql', data)
	},
	//过滤器-向导方式保存-DATE/NUMBER
	saveNomalFilterSql(data) {
		return axios.post(URL + '/param/pubFiltersql/saveNomalFilterSql', data)
	},
	//过滤器-手动方式保存
	validateSqlFormat(data) {
		return axios.post(URL + '/param/pubFilter/validateSqlFormat', data)
	},
	//过滤器-向导方式保存-展示列表
	queryForPageWithParams(data) {
		return axios.post(
			URL + '/param/pubFiltersql/queryForPageWithParams',
			data
		)
	},
	//过滤器-向导方式保存-展示列表-删除
	pubFiltersqlRemove(data) {
		return axios.post(URL + '/param/pubFiltersql/remove', data)
	},
	//过滤器-向导方式保存-展示SQL
	getPubFiltersqlById(data) {
		return axios.post(URL + '/param/pubFiltersql/getFielterSql', data)
	},
	//过滤器-回显数据
	pubFilterFindById(data) {
		return axios.post(URL + '/param/pubFilter/findById', data)
	},
	// 编辑时查询创建人是否是当前用户，判断是否置灰读写权限单选框
	loginUserIsCreater(data) {
		return axios.post(URL + '/param/pubFilter/loginUserIsCreater', data)
	},
	//过滤器-启用停用
	pubFilterChangeStatus(data) {
		return axios.post(URL + '/param/pubFilter/changeStatus', data)
	},
	//过滤器-回显-金融工具表下拉
	getFielterTable(data) {
		return axios.post(URL + '/param/pubFiltersql/getFielterTable', data)
	},
	//过滤器-修改过滤器时，判断当前用户是否有修改的权限。传入过滤器的id，入参为    id   。500没有权限
	hasAuthority(data) {
		return axios.post(URL + '/param/pubFilter/hasAuthority', data)
	},
}
